import { Body, Controller, Post } from '@nestjs/common';
import { SmsService } from './sms.service';

@Controller('components/sms')
export class SmsController {
  constructor(private smsService: SmsService) {}

  @Post('/sendCode')
  async registerCode(@Body() data) {
    return this.smsService.registerCode(data);
  }
}
